package com.learner.pojo.course;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;

/**
* @author ice2020x
* @Date: 2023/3/23
* @Description: 
**/
@Data
@ToString
@Entity
@Table(name="course_market")
@EntityListeners(AuditingEntityListener.class)
public class CourseMarket implements Serializable {
    private static final long serialVersionUID = -7956641946674188396L;
    @Id
    @Column(length = 32)
    private String id;
    private String valid;
    private BigDecimal price;
    private BigDecimal price_old;
    private String charge;
    private Date expires;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;
    @CreatedDate
    @Column(name = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @LastModifiedDate
    @Column(name = "gmt_modified")
    private Date gmtModified;
}
